package com.wkbb.common.enums;

public enum MsgTypeEnum {

    WX(1,"微信"),
    CP(2,"企业微信"),
    CP_NOTICE(3,"企业微信通知"),
    SMART(4,"智慧校园");

    private MsgTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (MsgTypeEnum mpAuthTypeEnum : MsgTypeEnum.values()) {
            if (mpAuthTypeEnum.getValue().intValue()==value) {
                return mpAuthTypeEnum.getDesc();
            }
        }
        return null;
    }
}
